package com.zhanglu.fun.tookit.ddd.router;

import com.zhanglu.fun.tookit.ddd.service.UserService;
import com.zhanglu.fun.tookit.ddd.view.UserLoginView;

/**
 * @author zhanglu
 * @description 用户层，也就是UI层
 * @date 2017/11/2 22:48
 */
public class UserRouter {
    public void login(UserLoginView loginView) {
        UserService userService = new UserService();
        userService.login(loginView);
    }

    public static void main(String[] args) {
        UserRouter userRouter = new UserRouter();
        userRouter.login(new UserLoginView().setPassword("123"));
        userRouter.login(new UserLoginView().setUsername("zhanglu").setPassword("123456"));
    }
}
